home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Arsenal Files 6
/
The Arsenal Files 6 (Arsenal Computer).ISO
/
prg_basi
/
n_b-v200.zip
/
NB01
/
DMO
/
ANYKEY.DMO
< prev
next >
Wrap
Text File
|
1996-03-11
|
2KB
|
42 lines
$if 0
┌──────────────────────────╖ PowerBASIC v3.20
┌──┤ DASoft ╟──────────────────────┬──────────────────╖
│ ├──────────────────────────╢ Copyright 1995 │ DATE: 1995-10-01 ╟─╖
│ │ FILE NAME ANYKEY .DMO ║ by ╘════════════════─ ║ ║
│ │ ║ Don Schullian, Jr. ║ ║
│ ╘══════════════════════════╝ ║ ║
│ A license is hereby granted to the holder to use this source code in ║ ║
│ any program, commercial or otherwise, without receiving the express ║ ║
│ permission of the copyright holder and without paying any royalties, ║ ║
│ as long as this code is not distributed in any compilable format. ║ ║
│ IE: source code files, PowerBASIC Unit files, and printed listings ║ ║
╘═╤═════════════════════════════════════════════════════════════════════╝ ║
│ .................................... ║
╘═══════════════════════════════════════════════════════════════════════╝
$endif
'.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°
' ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° °
$INCLUDE "DAS-NB01.INC"
COLOR 7, 0
CLS
? "┌────────────────────────────────────────────────────────────────
? "│ fAnyKey% ()
? "├───────────────────────────────────────────────────────────────────
? "│ This little function comes in handy when you want to pause the program
? "│ and await ANY keyboard action by the user. It first clears the keyboard
? "│ buffer then politely awaits a key press. It will return the thumped key
? "│ just in case you need it.
? "└────────────────────────────────────────────────────────────────────────
PRINT "PRESS ANY KEY TO CONTINUE"
G% = fAnyKey%
PRINT "YOU PRESSED KEY: ";
PRINT USING "### ###"; ( G% MOD 256 ), ( G% \ 256 );
LOCATE 25, 1 : PRINT ">>>>>>> ALL DONE <<<<<<<";